<!DOCTYPE HTML>
<html>

<head>
	<meta charset="utf-8">
	<meta name="viewport"
		content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
	<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
	<title>消息设置</title>
	<link rel="stylesheet" type="text/css" href="../../css/api.css" />
	<style>
		#app .header {
			height: 44px;
			background-color: #ffffff;
			font-size: 16px;
			padding: 0 15px;
			position: fixed;
			top: 0;
			right: 0;
			left: 0;
			display: flex;
			justify-content: center;
			align-items: center;
		}

		#app .header img {
			position: absolute;
			left: 15px;
			width: 22px;
			height: 22px;
		}

		#app .password {
			width: 100%;
			padding: 15px 15px 0;
			box-sizing: border-box;
		}

		#app .password .bgs {
			width: 100%;
			background-color: #ffffff;
			box-sizing: border-box;
			padding: 5px 15px;
			border-radius: 10px;
		}

		#app .password .tit {
			font-size: 30px;
			color: #000000;
			line-height: 30px;
		}

		#app .password .count {
			font-size: 14px;
			color: #999;
			line-height: 14px;
		}

		#app .password .count span {
			color: #ff3a24;
			margin-left: 10px;
		}

		#app .password .ipt {
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 20px 0;
			width: 100%;
			border-bottom: 1px solid #f5f5f5;
			position: relative;
		}

		#app .password .ipt:last-child {
			border: 0;
		}

		#app .password .ipt .text {
			flex-shrink: 0;
			width: 4em;
			margin-right: 15px;
			color: #000000;
			line-height: 16px;
		}

		.mui-switch {
			width: 52px;
			height: 31px;
			position: relative;
			border: 1px solid #e6e6e6;
			background-color: #e6e6e6;
			box-shadow: #e6e6e6 0 0 0 0 inset;
			border-radius: 20px;
			border-top-left-radius: 20px;
			border-top-right-radius: 20px;
			border-bottom-left-radius: 20px;
			border-bottom-right-radius: 20px;
			background-clip: content-box;
			display: inline-block;
			-webkit-appearance: none;
			user-select: none;
			outline: none;
		}

		.mui-switch:before {
			content: '';
			width: 29px;
			height: 29px;
			position: absolute;
			top: 0px;
			left: 0;
			border-radius: 20px;
			border-top-left-radius: 20px;
			border-top-right-radius: 20px;
			border-bottom-left-radius: 20px;
			border-bottom-right-radius: 20px;
			background-color: #fff;
			box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
		}

		.mui-switch:checked {
			border-color: #ff3a24;
			box-shadow: #ff583c 0 0 0 16px inset;
			background-color: #ff3a24;
		}

		.mui-switch:checked:before {
			left: 21px;
		}

		.mui-switch.mui-switch-anim {
			transition: border cubic-bezier(0, 0, 0, 1) 0.4s, box-shadow cubic-bezier(0, 0, 0, 1) 0.4s;
		}

		.mui-switch.mui-switch-anim:before {
			transition: left 0.3s;
		}

		.mui-switch.mui-switch-anim:checked {
			box-shadow: #ff583c 0 0 0 16px inset;
			background-image: linear-gradient(45deg, 
		#ff3a24 0%, 
		#ff5340 100%);
			transition: border ease 0.4s, box-shadow ease 0.4s, background-color ease 1.2s;
		}

		.mui-switch.mui-switch-anim:checked:before {
			transition: left 0.3s;
		}
	</style>
</head>

<body>
	<div id="app">
		<div class="header">
			<img src="../../image/icon_return.png" alt="" onclick="back()">消息设置
		</div>
		<div class="password">
			<div class="bgs">
				<div class="ipt">
					<div class="text">接受消息通知</div>
					<label>
						<input class="mui-switch mui-switch-anim" type="checkbox">
					</label>
				</div>
				<div class="ipt">
					<div class="text">收益消息<span></span></div>
					<label>
						<input class="mui-switch mui-switch-anim" type="checkbox">
					</label>
				</div>
				<div class="ipt">
					<div class="text">新粉丝消息</div>
					<label>
						<input class="mui-switch mui-switch-anim" type="checkbox" checked>
					</label>
				</div>

			</div>
		</div>

	</div>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/zepto.js"></script>
<script type="text/javascript">
	apiready = function () {
		resume("message_setting");

		$api.dom('.password').style.paddingTop = $api.fixStatusBar($api.dom('.header')) + 15 + 'px'

		// api.openFrame({
		// 	name: 'message_frame',
		// 	url: 'message_frame.html',
		// 	bounces: false,
		// 	bgColor: 'rgba(0, 0, 0, 0.5)',
		// 	rect: {
		// 		x: 0,
		// 		y: 0,
		// 		w: 'auto',
		// 		h: 'auto'
		// 	}
		// })
	}

	function back() {
		api.closeWin({
		});
	}
</script>

</html>